.flag-icon-background {
  background-size: contain;
  background-position: 50%;
  background-repeat: no-repeat;
}

.flag-icon {
  @extend .flag-icon-background;
  position: relative;
  display: inline-block;
  width: (4 / 3) * 2.3em;
  &:before {
    content: "\00a0";
  }
}

@mixin flag-icon($country) {
  .flag-icon-#{$country} {
    background-image: image-url(
      "#{$flag-icon-css-path}#{$flag-icon-rect-path}/#{$country}.svg"
    );
  }
}
